<!DOCTYPE html>
<script>
function submitForm()
{
    document.forms[0].submit();
}
</script>
<form method=post>
<input name=foo value="Some unimportant data">
<input type=submit>
</form>
